package com.packer.controller;

import com.packer.pojo.Shop;
import com.packer.service.IShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by qiaqia on 2016/10/7.
 */
@Controller
@RequestMapping("/wx")
public class TestController {


    @Autowired
    private IShopService shopService;

    @RequestMapping("/shop")
    @ResponseBody
    public Shop test(){

        Shop shop = shopService.getShopById(1);
        return shop;
    }


}
